package com.glodon.paas.document.web.resource.internal;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Path;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.glodon.paas.document.web.resource.ShareResource;
import com.glodon.paas.document.web.util.SecurityUtils;

@Component
@Path("/internal/share")
public class ShareInternalResource extends ShareResource {

    private static final Logger LOGGER = LoggerFactory.getLogger(ShareInternalResource.class);

    @Override
    public String getUserId(HttpServletRequest request) {
        return SecurityUtils.getRequestUserId(request);
    }

    @Override
    public Logger getLoger() {
        return LOGGER;
    }

}
